<template>
  <div class="node-component condition-node">
    <div class="node-icon">?</div>
    <div class="node-label">条件</div>
  </div>
</template>

<script>
import { defineComponent } from 'vue';

export default defineComponent({
  name: 'ConditionNode',
  props: {
    data: {
      type: Object,
      required: true
    }
  },
  setup() {
    return {};
  }
});
</script>

<style scoped>
.node-component {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background-color: #f9f9f9;
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
}

.node-component:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.node-component:active {
  cursor: grabbing;
}

.node-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: white;
  font-size: 16px;
  margin-right: 10px;
  flex-shrink: 0;
  background-color: #FFC107;
}

.node-label {
  font-size: 14px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
</style>